-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support empty invert_mask in measument gate deserialization #6224
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6224 +/- ##
==========================================
- Coverage 97.36% 97.35% -0.01%
==========================================
Files 1116 1116
Lines 95700 95708 +8
==========================================
Hits 93181 93181
- Misses 2519 2527 +8
☔ View full report in Codecov by Sentry. |
Can you explain what legacy behavior this is restoring? I am not sure I understand what got broken. |
arg
serialization
@dstrain115 An empty list This breaks measurement gate deserialization when the invertion mask is empty because during serialization it's not set. so during deserialization the value becomes |
arg
serialization
cirq-google/cirq_google/serialization/circuit_serializer_test.py
Outdated
Show resolved
Hide resolved
arg_function_language=arg_function_language, | ||
required_arg_name=None, | ||
), | ||
invert_mask_ = arg_func_langs.arg_from_proto( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having invert_mask
and invert_mask_
is pretty confusing. Can we give one a better name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed to parsed_invert_mask
No description provided.